// app.js
import $fn from './com/fn'
import $http from './com/http'
import $wx from './com/wx'
import $config from './com/config'
App({
	$fn, $http ,$wx, $config,
	img:'/assets/images',
	globalData: {
		
	},
	onLaunch(option) {
		// 判断是否登录
		const token = $wx.local('token')
		if(token){
			$wx.pushTab('/pages/index/index')
		}else{
			// $wx.replace('/pages/register/index')
		}
	}
})
